package com.firebird.app.fekpsl.mvp.sword.friend

import com.firebird.app.fekpsl.base.BasePresenter
import com.firebird.app.fekpsl.ext.ss
import com.firebird.app.fekpsl.mvp.common.CommonPresenter
import com.firebird.fekpsl.mvp.model.FollowModel

/**
 * Created by firebird on 2018/4/21.
 */
class FollowPresenter : BasePresenter<FollowContract.Model, FollowContract.View>(), FollowContract.Presenter {

    override fun createModel(): FollowContract.Model? = FollowModel()

    override fun getFollowList(pageNo:Int,userUuid:String) {
        mModel?.getFollowList(pageNo, userUuid)?.ss(mModel, mView) {
            mView?.showFollowList(it.data)
        }
    }
}